package javabase.desginpattern.behavior.observer.push;

/**
 * @author fance
 * @date 18-4-26 下午4:07
 */
public class ConcreteSubject    extends AbstractSubject {
    private String subjectState;

    public String getSubjectState() {
        return subjectState;
    }

    public void setSubjectState(String subjectState) {
        System.out.println("主题状态为: " + subjectState);
        this.subjectState = subjectState;

        this.notifyObservers(subjectState);
    }
}
